﻿using System;
using System.Collections.Generic;

namespace SmartSiteManagementSystem.Models.Admin
{
    [Serializable]
    public class AdminMenuInfo
    {
        #region Model
        private int _adminmenuid;
        private int _parentid = 0;
        private string _menuname;
        private bool _isparent = false;
        private string _url;
        private string _relevanceurl;
        private string _helptext;
        private int _sortorder = 0;
        private bool _showflag = true;
        private bool _stopflag = false;

        private string _parentName;
        /// <summary>
        /// 菜单Id
        /// </summary>
        public int AdminMenuId
        {
            set { _adminmenuid = value; }
            get { return _adminmenuid; }
        }
        /// <summary>
        /// 父菜单Id
        /// </summary>
        public int ParentId
        {
            set { _parentid = value; }
            get { return _parentid; }
        }

        /// <summary>
        /// 父菜单名称
        /// </summary>
        public string ParentName
        {
            set { _parentName = value; }
            get { return _parentName; }
        }
        /// <summary>
        /// 菜单名称
        /// </summary>
        public string MenuName
        {
            set { _menuname = value; }
            get { return _menuname; }
        }
        /// <summary>
        /// 是否为父菜单(即：该菜单是否还有子菜单) 
        /// </summary>
        public bool IsParent
        {
            set { _isparent = value; }
            get { return _isparent; }
        }
        /// <summary>
        /// 菜单路径
        /// </summary>
        public string Url
        {
            set { _url = value; }
            get { return _url; }
        }
        /// <summary>
        /// 菜单关联的路径
        /// </summary>
        public string RelevanceUrl
        {
            set { _relevanceurl = value; }
            get { return _relevanceurl; }
        }
        /// <summary>
        /// 帮助
        /// </summary>
        public string HelpText
        {
            set { _helptext = value; }
            get { return _helptext; }
        }
        /// <summary>
        /// 序号
        /// </summary>
        public int SortOrder
        {
            set { _sortorder = value; }
            get { return _sortorder; }
        }
        /// <summary>
        /// 显示标识
        /// </summary>
        public bool ShowFlag
        {
            set { _showflag = value; }
            get { return _showflag; }
        }
        /// <summary>
        /// 停用标识
        /// </summary>
        public bool StopFlag
        {
            set { _stopflag = value; }
            get { return _stopflag; }
        }


        public bool IsChecked { get; set; }

        #endregion Model

        private IList<AdminPageBtnInfo> _pageBtnlist;
        /// <summary>
        /// 菜单对应按钮和筛选条件集合
        /// </summary>
        public IList<AdminPageBtnInfo> TAdminPageBtnInfoList
        {
            get { return _pageBtnlist; }
            set { _pageBtnlist = value; }
        }

        private IList<AdminPageBtnInfo> _btnlist;

        /// <summary>
        /// 菜单对应按钮
        /// </summary>
        public IList<AdminPageBtnInfo> TAdminPageBtnInfoBtns
        {
            get { return _btnlist; }
            set { _btnlist = value; }
        }

        private IList<AdminPageBtnInfo> _filterlist;
        /// <summary>
        /// 菜单对应的筛选条件
        /// </summary>
        public IList<AdminPageBtnInfo> TAdminPageBtnInfoFilters
        {
            get { return _filterlist; }
            set { _filterlist = value; }
        }
    }
}
